package xyz.receiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.widget.Toast;

import xyz.utils.Util;

public class AlarmReceiver extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        int id = intent.getIntExtra("noteId", 1);
        if (id == -1) {
            return;
        }
        Toast.makeText(context, "Receive alarm", Toast.LENGTH_SHORT);
        Util.sendNotification(context, id);

    }
}
